const readline = require("readline");

const rl = readline.createInterface({
  input: process.stdin,
  output: process.stdout,
});
let lineno = 0;
let n = 0;

rl.on("line", (line) => {
  lineno++;
  if (lineno === 1) {
    n = Number.parseInt(line, 10);
    return;
  }
  const nums = line.slice(1, line.length - 1);

  if (lineno === n + 1) {
    rl.close();
  }
});
